{if $ruolo == "AMMINISTRATORE"}
<div id="divMenu" class="widthContent radiusDiv shadowDiv textAlignLeft tableDiv backBlu" style="margin-bottom:20px;margin-top:10px;">
	<div class="cellTableDiv leftDivFloat" style="width:100%;">
		
			<table class="tableBackMenu fontStyleNew " style="float:left;margin-left : 8px;">
				<tr>
					<td id="caricaLista" class="menuText shadowTextGrey" onClick="openMenu('caricaLista')">Carica Lista</td>
					<td class="menuText shadowTextGrey" >|</td>
					
				</tr>
			</table>
			<table class="tableBackMenu fontStyleNew" style="float:right;margin-right : 8px;">
				<tr>
					<td class="menuText shadowTextGrey">{$usrNominativo}</td>
					<td class="menuText shadowTextGrey" >|</td>
					<td id="home" class="menuText shadowTextGrey" onClick="openMenu('endSession')">Esci</td>
				</tr>
			</table>
		
			<!--table class="tableBackMenu fontStyleNew " style="float:left;margin-left : 8px;">
				<tr>
					<td id="home" class="menuText shadowTextGrey" onClick="openMenu('home')">Home</td>
					<td class="menuText shadowTextGrey" >|</td>
					<td id="report" class="menuText shadowTextGrey" onClick="openMenu('report')">Report</td>
				</tr>
			</table-->
		
	</div>	
</div>
{elseif $ruolo == "SUPERVISORE"}
<div id="divMenu" class="widthContent radiusDiv shadowDiv textAlignLeft tableDiv backBlu" style="margin-bottom:20px;margin-top:10px;">
	<div class="cellTableDiv leftDivFloat" style="width:100%;">
		
			<table class="tableBackMenu fontStyleNew " style="float:left;margin-left : 8px;">
				<tr>
					<td id="monitoring" class="menuText shadowTextGrey" onClick="openMenu2('monitoring','campagne')">Monitoring</td>
					<!--<td class="menuText shadowTextGrey" >|</td>
					<td id="unicef" class="menuText shadowTextGrey" onClick="openMenu2('contattiUtiliUnicef','campagne')">Contatti Utili Unicef</td>
				-->	<td class="menuText shadowTextGrey" >|</td>
					<td id="caricaLista" class="menuText shadowTextGrey" onClick="openMenu('dialer')">Dialer</td>
				</tr>
			</table>
			<table class="tableBackMenu fontStyleNew" style="float:right;margin-right : 8px;">
				<tr>
					<td class="menuText shadowTextGrey">{$usrNominativo}</td>
					<td class="menuText shadowTextGrey" >|</td>
					<td id="home" class="menuText shadowTextGrey" onClick="openMenu('endSession','')">Esci</td>
				</tr>
			</table>
		
			<!--table class="tableBackMenu fontStyleNew " style="float:left;margin-left : 8px;">
				<tr>
					<td id="home" class="menuText shadowTextGrey" onClick="openMenu('home')">Home</td>
					<td class="menuText shadowTextGrey" >|</td>
					<td id="report" class="menuText shadowTextGrey" onClick="openMenu('report')">Report</td>
				</tr>
			</table-->
		
	</div>	
</div>

{/if}

<input type="hidden" name="voceMenu" value="{$voceMenu}"/>

<script type="text/javascript">
/* <![CDATA[ */
	//chkVociMenu();
	var prevObj = false;
	var prevObj2 = false;

	
{literal}
function openMenu( modulo )
{
	if ( modulo == 'endSession' ) document.main.modVoce.value = '';
	else if ( modulo == 'admin' ) document.main.modVoce.value = 'admin';
	else document.main.modVoce.value = 'campagne';
	
// 		alert (modulo)
	document.main.modScript.value = modulo;
	
	document.main.clearRequest.value = 'S';
	
	//_loadContent(modulo)
	document.main.submit();
}

function openMenu2( page, modulo )
{
	if ( page == 'endSession' ) document.main.modVoce.value = '';
	else	document.main.modVoce.value = modulo;

	document.main.modScript.value = page;
	document.main.clearRequest.value = 'S';
	
	//_loadContent(modulo)
	document.main.submit();
}

function selVoce( obj )
{
	
	if ( prevObj2.id != obj.id ) 
		obj.setAttribute('class','h2Select');
	
	prevObj = obj;
	chkVociMenu();	
		
	// 		if ( prevObj ) prevObj.setAttribute('class','h2Normal');
			
	
}

function unSelVoce( obj2 )
{	
	if( prevObj.id == obj2.id )
		obj2.setAttribute('class','h2Normal');
	
	prevObj2 = obj2;
	chkVociMenu();
}

function chkVociMenu()
{	
	if ( document.main.voceMenu.value != "" )
	{
//  		document.getElementById(document.main.voceMenu.value).setAttribute('style', 'background-image: url(\'images/menuOver.png\');color:#6e5acb;');
			document.getElementById(document.main.voceMenu.value).setAttribute('style', 'color:#4DC4FF;');
	}
}

{/literal}
/* ]]> */
</script>
